<?php

if (have_posts() ) : while ( have_posts() ) : the_post();?>
 

 
				
		<div class="card p2 shadow-sm mt-3">
			<div class="card-body">
				<h4 class="card-title "><a href="<?php the_permalink()?>" class="link-primary text-decoration-none"><?php the_title() ?></a></h5>
				<h6 class="card-subtitle mt-3 text-muted">
					<span class="badge text-bg-success "><?php the_time()?></span>
					<span class="badge text-bg-warning"><?php the_author();?></span>
				</h4>
				<div class="mt-3">
					<p class="card-text"><?php the_excerpt();?></p>
					<div class="pt-3">
						<button type="button" class="btn btn-danger btn-sm">阅读数 <span class="badge bg-dark"><?php echo getPostViews(get_the_ID()); ?></span></button>
				
						
						<button type="button" class="btn btn-success btn-sm">评论数 <span class="badge bg-dark"><?php echo zfunc_comments_users($post->ID,1); ?></span></button>

					</div>									
				</div>
			</div>
		</div>
	<?php endwhile; else: ?>
	<p>There no posts to show</p>
<?php endif; wp_reset_query();?>
<?php wp_bootstrap_pagination();?>



